package com.pojo;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author zzuli_huahua
 * @version 1.0
 * @date 2022/7/10 9:39
 */

@TableName("cy_goods_sku")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsSKU implements Serializable {

    @TableField(value = "id")
    private Integer Id;
    @TableField(value = "goods_id")
    private int goodsId;
    @TableField(value = "title")
    private String title;
    @TableField(value = "num")
    private Integer num;
    @TableField(value = "price")
    private Integer price;
    @TableField(value = "properties")
    private String properties;
    @TableField(value = "bar_code")
    private String barCode;
    @TableField(value = "goods_code")
    private String goodsCode;
    @TableField(value = "status")
    private Integer status;
    @TableField(value = "created_at",fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(value = "updated_at",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

}
